let searchArr = [
  // 搜索框
  {
    name: '岗位名称',
    value: 'name',
    type: 'input',
  },
  {
    name: '岗位编码',
    value: 'code',
    type: 'input',
  },
  {
    name: '是否是领导',
    value: 'isLeader',
    type: 'select',
  },
]

// 公司组织表头
const columns = [{
    title: '岗位名称',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '岗位编号',
    dataIndex: 'code',
    key: 'code',
  },
  {
    title: '岗位标签',
    dataIndex: 'postLabelName',
    key: 'postLabelName',
  },
  {
    title: '关联实际岗位',
    dataIndex: 'basePostName',
    key: 'basePostName',
  },
  {
    title: '状态',
    dataIndex: 'isLeader',
    key: 'isLeader',
  },
  // {
  //   title: '岗位人员',
  //   dataIndex: 'employeeNames',
  //   key: 'employeeNames'
  // },
  {
    title: '操作',
    dataIndex: 'operation',
    key: 'operation',
    width: '220px',
    fixed: 'right',
    scopedSlots: {
      customRender: 'operation'
    }
  }
]

// 基础组织表头
const baseColumn = columns.filter(item => {
  return item.dataIndex !== 'employeeNames'
})
let type = [{

  value: 2,
  label: '项目部下属岗位'
}]
let isLeaderList = [{
    name: '是',
    id: 1,
  },
  {
    name: '否',
    id: 0,
  }
]

// 组织类型
const typeList = [
  { name: '单位', id: '1', },
  { name: '部门', id: '2', },
  { name: '项目', id: '3', },
  { name: '虚拟部门', id: '7', },
  { name: '其他', id: '8', }
]

export {
  searchArr,
  columns,
  baseColumn,
  isLeaderList,
  type,
  typeList
}